<script setup>
import {onMounted} from "vue";
import {Hide, View} from "@element-plus/icons-vue";

onMounted(() => {
  window.scrollTo({
    top:  -50,
    behavior: 'smooth' });
})
</script>

<template>
<div class="view-container">
  <div >
    <h1 class="title animate__animated animate__flipInX">与甲方系统对接中...</h1>
    <el-affix :offset="120" style="float: right;margin-right: 5%">
      <router-link to="/main" tag="button" class="custom-button">返回主页</router-link>
    </el-affix>

  </div>
  <div class="img-box animate__animated animate__fadeIn">
    <img src="https://xiaoxiaobaiyang.oss-cn-shenzhen.aliyuncs.com/student_System_img/website-banner.jpg" alt="newWeb">
  </div>
</div>
</template>

<style scoped>
.view-container{
  width: 100%;
  background-image: linear-gradient(to right, #1A72E6, #174EA6);
  height: 100vh;
  overflow: hidden;
}
.title{
  float: left;
  margin-top: 40vh;
  margin-left: 10%;
  font-size: 40px;
  font-weight: bolder;
  color: #ffffff;
  letter-spacing: 10px;
}
.img-box{
  float: left;
}
img{
  width: 100%;
  height:60vh;
}
/* 在你的 CSS 文件中 */
.custom-button {
  /* 去掉默认的链接下划线 */
  text-decoration: none;
  /* 设置按钮的样式 */
  background-image: linear-gradient(to top right, #16a2ee, #89d55d);
  border-radius: 10px;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}
/* 添加 hover 效果 */
.custom-button:hover {
  background-image: linear-gradient(to top right, #1894d7, #53b71a);
}

/* 添加 focus 效果 */
.custom-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

/* 添加 active 效果 */
.custom-button:active {
  background-image: linear-gradient(to top right, #78bce1, #a3ec79);
}
</style>
